import {useNavigate,Outlet } from 'react-router-dom'
const Home = ()=>{
    const nav = useNavigate()
    const toAbout = ()=>{
        nav('/about')
    }
    return (
        <>
        <div>home page</div>
        <div onClick={toAbout}>to about</div>
        <Outlet></Outlet>
        </>
    )
}
export default Home